﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InfoEdit.aspx.cs" Inherits="Smy.Web.Admin.Info.InfoEdit" ValidateRequest="false" %>
<%@ Import Namespace="Smy.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>编辑内容</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <%--<script type="text/javascript" charset="utf-8" src="../../scripts/webuploader/webuploader.min.js"></script>--%>
    <script type="text/javascript" charset="utf-8" src="../../scripts/plupload/plupload.full.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/pinyin.js"></script>
    <script src="../../scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $(function () {

            //初始化表单验证
            $("#form1").initValidform();

            //计算用户组价格
            $("#field_control_sell_price").change(function () {
                var sprice = parseFloat($(this).val());
                if (sprice > 0) {
                    $(".groupprice").each(function () {
                        var num = parseFloat($(this).attr("discount")) * sprice / 100;
                        $(this).val(ForDight(num, 2));
                    });
                }
            });
            window.UEDITOR_CONFIG = {
                UEDITOR_HOME_URL: '/ueditor/',
                serverUrl: "/tools/controller.ashx",
                initialFrameWidth: '100%',
                wordCount: false,
                elementPathEnabled: false
            };
            $('.editor').each(function () {
                UE.getEditor($(this).attr('id'), {
                    initialFrameHeight: 350,
                    toolbars: [[
                        'fullscreen', 'source', '|', 'undo', 'redo', '|',
                        'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                        'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                        'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                        'directionalityltr', 'directionalityrtl', 'indent', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                        'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                        'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'webapp', 'pagebreak', 'template', 'background', '|',
                        'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
                        'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
                        'print', 'preview', 'searchreplace', 'help', 'drafts'
                    ]]
                });
            })

            $('.editor-mini').each(function () {
                UE.getEditor($(this).attr('id'), {
                    initialFrameHeight: 250,
                    toolbars: [[
                    'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fontborder', '|',
                    'customstyle', 'paragraph', 'fontfamily', 'fontsize', 'directionalityltr', 'directionalityrtl', 'indent', '|',
                     'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
                      'link', 'unlink', 'anchor', 'insertimage'
                    ]]
                });
            })



            //初始化上传控件
            $(".upload-img").each(function() {
                $(this).InitUploader({ water: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });
            });
            $(".upload-video").each(function() {
                $(this).InitUploader({ filesize: "<%=siteConfig.videosize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.videoextension %>" });
            });
            $(".upload-album").each(function() {
                $(this).InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });
            });

            //设置封面图片的样式
            $(".photo-list ul li .img-box img").each(function () {
                if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                    $(this).parent().addClass("selected");
                }
            });

            //创建上传附件
            $(".attach-btn").click(function () {
                showAttachDialog();
            });

            //创建商品规格
            $(".spec-btn").click(function () {
                showSpecDialog();
            });
            //赋值规格市场价格
            $("#field_control_market_price").blur(function () {
                $("#div_spec__container").find("input[name='spec_market_price']").val($(this).val());
            });
            //赋值规格销售价格
            $("#field_control_sell_price").blur(function () {
                $("#div_spec__container").find("input[name='spec_sell_price']").val($(this).val());
            });
            //内容改变事件
            $('#item_box').bind('DOMNodeInserted', function (e) {
                $(e.target).find(".upload-img").InitUploader({
                    filesize: "<%=siteConfig.imgsize %>",
                sendurl: "../../tools/upload_ajax.ashx",
                swf: "../../scripts/webuploader/uploader.swf",
                filetypes: "jpg,png,gif",
                thumbnail: false,
                compress: {
                    width: 50,
                    height: 50,
                    quality: 100,
                    allowMagnify: false,
                    crop: false,
                    preserveHeaders: true
                }
            });
        });
        });

    //初始化附件窗口
    function showAttachDialog(obj) {
        var objNum = arguments.length;
        var attachDialog = top.dialog({
            id: 'attachDialogId',
            title: "上传附件",
            url: 'dialog/dialog_attach.aspx',
            width: 600,
            height: 180,
            onclose: function () {
                var liHtml = this.returnValue; //获取返回值
                if (liHtml.length > 0) {
                    $("#showAttachList").children("ul").append(liHtml);
                }
            }
        }).showModal();
        //如果是修改状态，将对象传进去
        if (objNum == 1) {
            attachDialog.data = obj;
        }
    }
    //删除附件节点
    function delAttachNode(obj) {
        $(obj).parent().remove();
    }
    //初始化规格窗口
    function showSpecDialog() {
        var d = top.dialog({
            id: 'specDialogId',
            padding: 0,
            title: "商品规格",
            url: 'dialog/dialog_spec_item.aspx'
        }).showModal();
        //将容器对象传进去
        d.data = $("#item_box");
    }
    //初始化会员组价格窗口
    function showPriceDialog(obj) {
        var d = top.dialog({
            padding: 0,
            title: "会员组价格",
            url: 'dialog/dialog_group_price.aspx',
            width: 400
        }).showModal();
        //将对象传进去
        d.data = obj;
    }
    //计算出最小的市场价格
    function countMarketPrice(obj) {
        var objName = $(obj).attr("name");
        var minValue = parseFloat($(obj).val());
        $("input[name='" + objName + "']").each(function () {
            if ($(this).val().length > 0) {
                if (parseFloat($(this).val()) < minValue) {
                    minValue = parseFloat($(this).val());
                }
            }
        });
        $("#field_control_market_price").val(minValue);
    }
    //计算最小的销售价格
    function countSellPrice(obj) {
        var objName = $(obj).attr("name");
        var minValue = parseFloat($(obj).val());
        $("input[name='" + objName + "']").each(function () {
            if ($(this).val().length > 0) {
                if (parseFloat($(this).val()) < minValue) {
                    minValue = parseFloat($(this).val());
                }
            }
        });
        $("#field_control_sell_price").val(minValue);
    }
    //计算库存总数量
    function countStockQuantity(obj) {
        var objName = $(obj).attr("name");
        var countValue = 0;
        $("input[name='" + objName + "']").each(function () {
            if ($(this).val().length > 0) {
                countValue += parseFloat($(this).val());
            }
        });
        $("#field_control_stock_quantity").val(countValue);
    }

    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="InfoList.aspx?channel_id=<%=this.channel_id %>" class="back"><i></i><span>返回列表页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <a href="InfoList.aspx?channel_id=<%=this.channel_id %>"><span>内容管理</span></a>
            <i class="arrow"></i>
            <span>编辑内容</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a class="selected" href="javascript:;">基本信息</a></li>
                        <li id="field_tab_item" runat="server" visible="false"><a href="javascript:;">扩展选项</a></li>
                        <li><a href="javascript:;">详细描述</a></li>
                        <li><a href="javascript:;">SEO选项</a></li>
                        <%--<li><a href="javascript:">相关内容</a></li>--%>
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>所属栏目<%if(is_super_admin==1){ %>[category_id]<%} %></dt>
                <dd>
                    <div class="rule-single-select">
                        <asp:DropDownList ID="ddlCategoryId" runat="server" datatype="*" sucmsg=" "></asp:DropDownList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>显示状态<%if(is_super_admin==1){ %>[status]<%} %></dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
                            <asp:ListItem Value="1">待审核</asp:ListItem>
                            <asp:ListItem Value="2">不显示</asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>推荐类型<%if(is_super_admin==1){ %>[item]<%} %></dt>
                <dd>
                    <div class="rule-multi-checkbox">
                        <asp:CheckBoxList ID="cblItem" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1">允许评论</asp:ListItem>
                            <asp:ListItem Value="1">置顶</asp:ListItem>
                            <asp:ListItem Value="1">推荐</asp:ListItem>
                            <asp:ListItem Value="1">热门</asp:ListItem>
                            <asp:ListItem Value="1">幻灯片</asp:ListItem>
                        </asp:CheckBoxList>
                    </div>
                </dd>
            </dl>
            <dl>
                <dt>内容标题<%if(is_super_admin==1){ %>[title]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="input normal" datatype="*1-255" sucmsg=" " />
                    <span class="Validform_checktip">*最多255个字符</span>
                </dd>
            </dl>
            <dl>
                <dt>Tags标签<%if(is_super_admin==1){ %>[tags]<%} %></dt>
                <dd><asp:TextBox ID="txtTags" CssClass="input normal" datatype="*0-500" sucmsg=" " runat="server" /></dd>
            </dl>
            <dl id="div_sub_title" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_sub_title_title" runat="server" Text="副标题<%if(is_super_admin==1){ %>[sub_title]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_sub_title" runat="server" CssClass="input normal" datatype="*0-255" sucmsg=" " />
                    <asp:Label ID="div_sub_title_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl>
                <dt>封面图片<%if(is_super_admin==1){ %>[img_url]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input normal upload-path" />
                    <div class="upload-box upload-img"></div>
                </dd>
            </dl>
            <dl id="div_goods_no" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_goods_no_title" runat="server" Text="商品货号<%if(is_super_admin==1){ %>[goods_no]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_goods_no" runat="server" CssClass="input normal" datatype="*0-100" sucmsg=" " />
                    <asp:Label ID="div_goods_no_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl id="div_stock_quantity" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_stock_quantity_title" runat="server" Text="库存数量<%if(is_super_admin==1){ %>[stock_quantity]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_stock_quantity" runat="server" CssClass="input small" datatype="n" sucmsg=" ">0</asp:TextBox>
                    <asp:Label ID="div_stock_quantity_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl id="div_market_price" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_market_price_title" runat="server" Text="市场价格<%if(is_super_admin==1){ %>[market_price]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_market_price" runat="server" CssClass="input small" datatype="/^(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$/" sucmsg=" ">0</asp:TextBox>
                    元
      <asp:Label ID="div_market_price_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl id="div_sell_price" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_sell_price_title" runat="server" Text="销售价格<%if(is_super_admin==1){ %>[sell_price]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_sell_price" runat="server" CssClass="input small" datatype="/^(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$/" sucmsg=" ">0</asp:TextBox>
                    元
      <asp:Label ID="div_sell_price_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <asp:Repeater ID="rptPrice" runat="server">
                <HeaderTemplate>
                    <dl>
                        <dt>会员价格</dt>
                        <dd>
                            <div class="table-container">
                                <table border="0" cellspacing="0" cellpadding="0" class="border-table">
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <th width="20%"><%#Eval("title")%></th>
                        <td width="80%">
                            <asp:HiddenField ID="hidePriceId" runat="server" />
                            <asp:HiddenField ID="hideGroupId" Value='<%#Eval("id") %>' runat="server" />
                            <asp:TextBox ID="txtGroupPrice" runat="server" discount='<%#Eval("discount") %>' CssClass="td-input groupprice" MaxLength="10" Style="width: 60px;" datatype="/^(([1-9]{1}\d*)|([0]{1}))(\.(\d){1,2})?$/" sucmsg=" ">0</asp:TextBox>
                            <span class="Validform_checktip">*享受<%#Eval("discount")%>折优惠</span>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
      </div>
    </dd>
  </dl>
                </FooterTemplate>
            </asp:Repeater>
            <div id="div_spec__container" runat="server" visible="false">
                <dl>
                    <dt>商品规格</dt>
                    <dd>
                        <a class="icon-btn add spec-btn"><span>设置规格</span></a>
                        <div class="table-container" style="padding-top: 10px;">
                            <asp:HiddenField ID="hide_goods_spec_list" Value="[]" runat="server" />
                            <table border="0" cellspacing="0" cellpadding="0" class="border-table" width="82%">
                                <thead>
                                    <tr>
                                        <th align="center" width="15%">货号</th>
                                        <th width="8%">市场价(元)</th>
                                        <th width="8%">销售价(元)</th>
                                        <th width="8%">库存(件)</th>
                                        <th width="35%">规格</th>
                                        <th width="20%">图片</th>
                                        <th width="8%">会员价</th>
                                    </tr>
                                </thead>
                                <tbody id="item_box">
                                    <asp:Repeater runat="server" ID="rptInfoGoods">
                                        <ItemTemplate>
                                            <tr>
                                                <td align="center">
                                                    <input type="hidden" name="hide_goods_id" value="<%#Eval("id") %>" /><input type="text" name="spec_goods_no" class="td-input" value="<%#Eval("goods_no") %>" /></td>
                                                <td align="center">
                                                    <input type="text" name="spec_market_price" maxlength="10" class="td-input" value="<%#Eval("market_price") %>" onkeydown="return checkForFloat(this,event);" onblur="countMarketPrice(this);" /></td>
                                                <td align="center">
                                                    <input type="text" name="spec_sell_price" maxlength="10" class="td-input" value="<%#Eval("sell_price") %>" onkeydown="return checkForFloat(this,event);" onblur="countSellPrice(this);" /></td>
                                                <td align="center">
                                                    <input type="text" name="spec_stock_quantity" maxlength="10" class="td-input" value="<%#Eval("quantity_stock") %>" onkeydown="return checkNumber(event);" onblur="countStockQuantity(this);" /></td>
                                                <td style="white-space: inherit; word-break: break-all;">
                                                    <input type="hidden" name="hide_spec_ids" value="<%#Eval("spec_ids") %>" /><input type="hidden" name="hide_spec_text" value="<%#Eval("spec_text") %>" /><p><%#Eval("spec_text") %></p>
                                                </td>
                                                <td>
                                                    <input type="hidden" name="spec_img_url" value="<%#Eval("img_url") %>" class="upload-path" /><div class="upload-box upload-img"></div>
                                                </td>
                                                <td align="center">
                                                    <input name="hide_group_price" type="hidden" value='<%#Eval("group_price") %>' /><a href="javascript:;" onclick="showPriceDialog(this);">设置</a></td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                            </table>
                        </div>
                    </dd>
                </dl>

            </div>
            <dl id="div_point" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_point_title" runat="server" Text="积分" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_point" runat="server" CssClass="input small" datatype="/^-?\d+$/" sucmsg=" ">0</asp:TextBox>
                    <asp:Label ID="div_point_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl>
                <dt>排序<%if(is_super_admin==1){ %>[sort_id]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtSortId" runat="server" CssClass="input small" datatype="n" sucmsg=" ">99</asp:TextBox>
                    <span class="Validform_checktip">*按照数字从小到大的顺序对内容进行排序</span>
                </dd>
            </dl>
            <dl>
                <dt>浏览次数<%if(is_super_admin==1){ %>[click]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtClick" runat="server" CssClass="input small" datatype="n" sucmsg=" ">0</asp:TextBox>
                    <span class="Validform_checktip"></span>
                </dd>
            </dl>
            <dl>
                <dt>发布时间<%if(is_super_admin==1){ %>[add_time]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtAddTime" runat="server" CssClass="input rule-date-input" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" datatype="/^\s*$|^\d{4}\-\d{1,2}\-\d{1,2}\s{1}(\d{1,2}:){2}\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
                    <span class="Validform_checktip">不选择默认当前发布时间</span>
                </dd>
            </dl>
            <dl id="div_albums_container" runat="server" visible="false">
                <dt>图片相册</dt>
                <dd>
                    <div class="upload-box upload-album"></div>
                    <input type="hidden" name="hidFocusPhoto" id="hidFocusPhoto" runat="server" class="focus-photo" />
                    <div class="photo-list">
                        <ul>
                            <asp:Repeater ID="rptAlbumList" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <input type="hidden" name="hid_photo_name" value="<%#Eval("id")%>|<%#Eval("original_path")%>|<%#Eval("thumb_path")%>" />
                                        <input type="hidden" name="hid_photo_remark" value="<%#Eval("remark")%>" />
                                        <input type="hidden" name="hid_photo_sort_id" value="<%#Eval("sort_id")%>" />
                                        <div class="img-box" onclick="setFocusImg(this);">
                                            <img src="<%#Eval("thumb_path")%>" bigsrc="<%#Eval("original_path")%>" />
                                            <span class="remark"><i><%#Eval("remark").ToString() == "" ? "暂无描述..." : Eval("remark").ToString()%></i></span>
                                        </div>
                                        <a href="javascript:;" onclick="setRemark(this);">描述</a>
                                        <a href="javascript:;" onclick="setSort(this);">排序</a>
                                        <a href="javascript:;" onclick="delImg(this);">删除</a>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </dd>
            </dl>
            <dl id="div_attach_container" runat="server" visible="false">
                <dt>上传附件</dt>
                <dd>
                    <a class="icon-btn add attach-btn"><span>添加附件</span></a>
                    <div id="showAttachList" class="attach-list">
                        <ul>
                            <asp:Repeater ID="rptAttachList" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <input name="hid_attach_id" type="hidden" value="<%#Eval("id")%>" />
                                        <input name="hid_attach_filename" type="hidden" value="<%#Eval("file_name")%>" />
                                        <input name="hid_attach_filepath" type="hidden" value="<%#Eval("file_path")%>" />
                                        <input name="hid_attach_filesize" type="hidden" value="<%#Eval("file_size")%>" />
                                        <i class="icon"></i>
                                        <a href="javascript:;" onclick="delAttachNode(this);" class="del" title="删除附件"></a>
                                        <a href="javascript:;" onclick="showAttachDialog(this);" class="edit" title="更新附件"></a>
                                        <div class="title"><%#Eval("file_name")%></div>
                                        <div class="info">类型：<span class="ext"><%#Eval("file_ext")%></span> 大小：<span class="size"><%#Convert.ToInt32(Eval("file_size")) > 1024 ? Convert.ToDouble((Convert.ToDouble(Eval("file_size")) / 1024f)).ToString("0.0") + "MB" : Eval("file_size") + "KB"%></span> 下载：<span class="down"><%#Eval("down_num")%></span>次</div>
                                        <div class="btns">下载积分：<input type="text" name="txt_attach_point" onkeydown="return checkNumber(event);" value="<%#Eval("point")%>" /></div>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </dd>
            </dl>
        </div>

        <div id="field_tab_content" runat="server" visible="false" class="tab-content" style="display: none"></div>

        <div class="tab-content" style="display: none">
            <dl>
                <dt>调用别名<%if(is_super_admin==1){ %>[call_index]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtCallIndex" runat="server" CssClass="input normal" datatype="/^\s*$|^[a-zA-Z0-9\-\_]{2,50}$/" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*别名访问，非必填，不可重复</span>
                </dd>
            </dl>
            <dl>
                <dt>URL链接<%if(is_super_admin==1){ %>[link_url]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtLinkUrl" runat="server" MaxLength="255" CssClass="input normal" />
                    <span class="Validform_checktip">填写后直接跳转到该网址</span>
                </dd>
            </dl>
            <dl id="div_source" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_source_title" runat="server" Text="信息来源<%if(is_super_admin==1){ %>[source]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_source" runat="server" CssClass="input normal"></asp:TextBox>
                    <asp:Label ID="div_source_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl id="div_author" runat="server" visible="false">
                <dt>
                    <asp:Label ID="div_author_title" runat="server" Text="文章作者<%if(is_super_admin==1){ %>[author]<%} %>" /></dt>
                <dd>
                    <asp:TextBox ID="field_control_author" runat="server" CssClass="input normal" datatype="s0-50" sucmsg=" "></asp:TextBox>
                    <asp:Label ID="div_author_tip" runat="server" CssClass="Validform_checktip" />
                </dd>
            </dl>
            <dl>
                <dt>内容摘要<%if(is_super_admin==1){ %>[zhaiyao]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtZhaiyao" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">不填写则自动截取内容前255字符</span>
                </dd>
            </dl>
            <dl>
                <dt>内容描述<%if(is_super_admin==1){ %>[content]<%} %></dt>
                <dd>
                    <textarea id="txtContent" class="editor" runat="server"></textarea>
                </dd>
            </dl>
        </div>

        <div class="tab-content" style="display: none">
            <dl>
                <dt>SEO标题<%if(is_super_admin==1){ %>[seo_title]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtSeoTitle" runat="server" MaxLength="255" CssClass="input normal" datatype="*0-100" sucmsg=" " />
                    <span class="Validform_checktip">255个字符以内</span>
                </dd>
            </dl>
            <dl>
                <dt>SEO关健字<%if(is_super_admin==1){ %>[seo_seywords]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtSeoKeywords" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">以“,”逗号区分开，255个字符以内</span>
                </dd>
            </dl>
            <dl>
                <dt>SEO描述<%if(is_super_admin==1){ %>[seo_description]<%} %></dt>
                <dd>
                    <asp:TextBox ID="txtSeoDescription" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">255个字符以内</span>
                </dd>
            </dl>
        </div>
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-wrap">
                <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />
            </div>
        </div>
        <!--/工具栏-->

    </form>
    <script>
        $(function () {

        });
    </script>
</body>
</html>